import http from '@/utils/http/axios'

enum Api {
    appMyapp = '/app/myapp',
    appInfo = '/app/application',
    appCancel = '/app/cancel',
    appDo = '/app/do',
}

/**
 * @description: 通过或否决审批
 */
export function appDo(params: any) {
    return http.request({
        url: Api.appDo,
        method: 'POST',
        params,
    })
}

/**
 * @description: 取消审批
 */
export function appCancel(params: any) {
    return http.request({
        url: Api.appCancel,
        method: 'POST',
        params,
    })
}

/**
 * @description: 我的审批
 */
export function appMyapp(params: any) {
    return http.request({
        url: Api.appMyapp,
        method: 'POST',
        params,
    })
}

/**
 * @description: 审批详情
 */
export function appInfo(params: any) {
    return http.request({
        url: Api.appInfo,
        method: 'GET',
        params,
    })
}
